]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
userWidget: Remove frame around avatar
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Feb 2019 16:28:41 +0000 (17:28 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 4 Mar 2019 22:50:29 +0000 (22:50 +0000)
There's a push for round user images, for which the existing square
frame is a bad match. So remove the frame and enforce the shape.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/811

data/theme/gnome-shell-sass/_common.scss
js/ui/userWidget.js

index d5fae21573b585e927cfe400f4bcd098844def34..9dedbdcd34dba66b74fd369cd2e22ab20edbc909 100644 (file)
@@ -267,8 +267,7 @@ StScrollBar {
   }
 
   .end-session-dialog-logout-icon {
-    //border: 2px solid #8b8b8b;
-    border-radius: 5px;
+    border-radius: 99px;
     width: 48px;
     height: 48px;
     background-size: contain;
@@ -428,7 +427,7 @@ StScrollBar {
   }
 
   .polkit-dialog-user-icon {
-    border-radius: 5px;
+    border-radius: 99px;
     background-size: contain;
     width: 48px;
     height: 48px;
@@ -1757,13 +1756,11 @@ StScrollBar {
 
 /* Auth Dialogs & Screen Shield */
 
-.framed-user-icon {
+.user-icon {
   background-size: contain;
-  border: 2px solid $osd_fg_color;
   color: $osd_fg_color;
-  border-radius: 3px;
+  border-radius: 99px;
   &:hover {
-    border-color: lighten($osd_fg_color,30%);
     color: lighten($osd_fg_color,30%);
   }
 }
index 5daf5e73dc89577bb3f455e198c7250bc2ceecee..a3bf4cba18fd7cb79f434d83c93642e0f991f166 100644 (file)
@@ -18,7 +18,7 @@ var Avatar = class {
         this._user = user;
         params = Params.parse(params, { reactive: false,
                                         iconSize: AVATAR_ICON_SIZE,
-                                        styleClass: 'framed-user-icon' });
+                                        styleClass: 'user-icon' });
         this._iconSize = params.iconSize;
 
         let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;